﻿#include "sys.h"
#include <stdio.h>

int main()
{
    printf("********* Factory Pattern *********\r\n");
    sys_init();//初始化驱动 -> open
    sys_loop();//实际业务   -> read
    sys_exit();//释放驱动   -> close
    return 0;
}